const step = {
  state: {
    dataSourceId1: "",
    dataSourceId2: "",
    data: {},
  },

  mutations: {
    SET_DATAID1: (state, dataSourceId1) => {
      state.dataSourceId1 = dataSourceId1;
    },
    SET_DATAID2: (state, dataSourceId2) => {
      state.dataSourceId2 = dataSourceId2;
    },
    getData(state, payload) {
      state.data = { ...state.data, ...payload }

      // const { id } = form;
      // commit("SET_DATAID2", id);
    },
  },

  actions: {
    // 更新start和end状态
    updataId1({ commit }, form) {
      const { id } = form;
      commit("SET_DATAID1", id);
    },
    updataId2({ commit }, form) {
      const { id } = form;
      commit("SET_DATAID2", id);
    },

  },

  // 前端 登出
};

export default step;
